//
//  LGCustomTextMessageCell.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/3/23.
//  文字

#import "LGCustomTextMessageCell.h"

@interface LGCustomTextMessageCell()
/**   */
@property (nonatomic , strong)UILabel *contentLabel;

@end

@implementation LGCustomTextMessageCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self.container addSubview:self.contentLabel];
        self.backgroundColor = [UIColor clearColor];
        self.contentView.backgroundColor = [UIColor clearColor];
    }
    return  self;
}

-(void)fillWithData:(LGCustomCellData *)data{
    [super fillWithData:data];
    self.contentLabel.text = data.customDic[@"msgcontent_doctor"][@"content"];
    self.nameLabel.hidden = YES;
    self.avatarView.hidden = YES;
    self.retryView.hidden = YES;
    [self.indicator stopAnimating];
    
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.container.center = self.contentView.center;
    self.contentLabel.frame = self.container.bounds;
}

-(UILabel *)contentLabel{
    if(!_contentLabel){
        _contentLabel = [UILabel lableWithText:@"" colorString:@"#666666" textFont:LGFont(14) textAlignment:NSTextAlignmentCenter lines:3];
    }
    return _contentLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
